<?php
namespace app\index\controller;

use app\common\controller\FrontBase;
use app\common\service\Product as ProductService;

class Home extends FrontBase{
    public function index(){

        //产品列表
        $productService = new ProductService();
        $products = $productService ->paginate();
        $this->param['products'] = $products;

        //文章列表

        return view('',$this->param);
    }
}
